// import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

// const routes: Array<RouteRecordRaw> = [
//   {
//     path: '/',
//     name: 'Index',
//     component: () => import('../views/index/index.vue')
//   },
//   {
//     path: '/user/login',
//     name: 'Login',
//     component: () => import('../views/login/login.vue')
//   },
//   {
//     path: '/user/login-callback',
//     name: 'LoginCallBack',
//     component: () => import('../views/login/loginCallBack.vue')
//   }
// ]

// const router = createRouter({
//   history: createWebHistory(),
//   routes
// })

// export default router
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Index',
    component: () => import('../views/index/index.vue')
  },
  {
    path: '/user/login',
    name: 'Login',
    component: () => import('../views/login/login.vue')
  },
  {
    path: '/user/login-callback',
    name: 'LoginCallBack',
    component: () => import('../views/login/loginCallBack.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
